# 1 "../Codes/MCU_Mold/MCU_F_C_Convert.c"
# 1 "W:\\Projects_XW\\APT32F102X\\Vertical_APT32F1023\\Y36_LCD_APT32F1023\\APT32F102_Release_V1_05_20210121\\Source//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "../Codes/MCU_Mold/MCU_F_C_Convert.c"

# 1 "d:\\c-sky\\cdkrepo\\toolchain\\ckv2elfminilib\\v3.10.29\\r\\lib\\gcc\\csky-elfabiv2\\6.3.0\\include\\stdint.h" 1 3 4
# 9 "d:\\c-sky\\cdkrepo\\toolchain\\ckv2elfminilib\\v3.10.29\\r\\lib\\gcc\\csky-elfabiv2\\6.3.0\\include\\stdint.h" 3 4
# 1 "d:\\c-sky\\cdkrepo\\toolchain\\ckv2elfminilib\\v3.10.29\\r\\csky-elfabiv2\\sys-include\\stdint.h" 1 3 4
# 33 "d:\\c-sky\\cdkrepo\\toolchain\\ckv2elfminilib\\v3.10.29\\r\\csky-elfabiv2\\sys-include\\stdint.h" 3 4

# 33 "d:\\c-sky\\cdkrepo\\toolchain\\ckv2elfminilib\\v3.10.29\\r\\csky-elfabiv2\\sys-include\\stdint.h" 3 4
typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
typedef int __int32_t;
__extension__
typedef long long int int64_t;



typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;

typedef unsigned int uint32_t;
typedef unsigned int __uint32_t;


__extension__
typedef unsigned long long int uint64_t;





typedef signed char int_least8_t;
typedef short int int_least16_t;
typedef int int_least32_t;
__extension__
typedef long long int int_least64_t;


typedef unsigned char uint_least8_t;
typedef unsigned short int uint_least16_t;
typedef unsigned int uint_least32_t;
__extension__
typedef unsigned long long int uint_least64_t;





typedef signed char int_fast8_t;
typedef int int_fast16_t;
typedef int int_fast32_t;
__extension__
typedef long long int int_fast64_t;


typedef unsigned char uint_fast8_t;
typedef unsigned int uint_fast16_t;
typedef unsigned int uint_fast32_t;
__extension__
typedef unsigned long long int uint_fast64_t;




typedef int intptr_t;


typedef unsigned int uintptr_t;



__extension__
typedef long long int intmax_t;
__extension__
typedef unsigned long long int uintmax_t;
# 10 "d:\\c-sky\\cdkrepo\\toolchain\\ckv2elfminilib\\v3.10.29\\r\\lib\\gcc\\csky-elfabiv2\\6.3.0\\include\\stdint.h" 2 3 4
# 3 "../Codes/MCU_Mold/MCU_F_C_Convert.c" 2
# 1 "../Codes/MCU_Mold/Mcu_F_C_Convert.h" 1






# 6 "../Codes/MCU_Mold/Mcu_F_C_Convert.h"
typedef enum
{
    Unit_F = 1,
    Unit_C = 2,
    Unit_F_C = 3,
}Grill_Unit_E;

uint32_t F_Convert_C(uint32_t);
# 4 "../Codes/MCU_Mold/MCU_F_C_Convert.c" 2


uint32_t F_Convert_C(uint32_t F)
{
    uint32_t x;

    if(F == 200) F = 199;
    if(F == 180) F = 181;
    if(F >= 32)
    {
        x = (F - 32);
        x *= 100;
        x /= 18;

        if((x % 10) >= 5)
        {
            x /= 10;

        }
        else x /= 10;

        return x;
    }
    else return 0;
}
